package com.dragon.refect.classload;

import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;

/**
 * @author dragon
 * @since 2019/11/20
 */
public class MyTest8 {

    public static void main(String[] args) throws IOException {
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        String resourceName = "com/dragon/refect/classload/MyTest7.class";
        Enumeration<URL> urls = classLoader.getResources(resourceName);
        while (urls.hasMoreElements()) {
            URL url = urls.nextElement();
            System.out.println(url);
        }
    }
}
